<#include "template/template_main.ftl">
<@main>
<script type="text/javascript">
	function clickMenu(url,code){
		var mainFrameset=top.window.document.getElementById("menuFrame");
		if(url.indexOf("?")>0)
			mainFrameset.src=url+"&serviceCode="+code;
		else
			mainFrameset.src=url+"?serviceCode="+code;
	}
	//默认跳转
	$().ready( function() {
		$("#menu0").click(function(){
		// $("#menu0").attr("href",$("#menu0").attr("name")+"?serviceCode="+$("#menu0").attr("tip"));
		   	//alert($("#menu0").attr("href"));
		});
		$("#menu0").click();
	});
	</script>
<body class="header">
	<div class="body">
		<div class="headerLogo"></div>
		<div class="headerTop">
			<div class="headerLink">
				<span class="welcome">
					<strong>&nbsp;欢迎您:&nbsp;<span>${(operator.userName)!}</span></strong>
				</span>
				<a href="${web_base}/login!index.htm" target="mainFrame">后台首页</a>|
			</div>
		</div>
		<div class="headerBottom">
			<div class="headerMenu">
				<div class="menuLeft"></div>
				<ul>
				<#if permissionList??>
				<#list permissionList as row>
	            	<li><a id="menu${row_index}" onclick="clickMenu('${urlCompletion(row.menuUrl)}','${(row.menuId)!}')" href="#" hidefocus="true">${(row.menuName)!}</a></li>
	            </#list>
	            </#if>
	                <li class="home"><a href="${urlCompletion("/")}" target="_blank" hidefocus="true"></a></li>
	            </ul>
	            <div class="menuRight"></div>
			</div>
			<div class="userInfo">
				<a href="${web_base}/logout.htm" target="_top">
					<span class="logoutIcon">&nbsp;</span>退出&nbsp;
				</a>
			</div>
		</div>
	</div>
</body>
</@main>